import request from '@/utils/request';

// 查询商品拼团列表
export function listCollage(data) {
	return request({
		url: '/system/collage/list',
		method: 'post',
		data,
	});
}

// 查询商品拼团详细
export function getCollage(id) {
	return request({
		url: '/system/collage/getInfo',
		method: 'post',
		data: id,
	});
}

// 新增商品拼团
export function addCollage(data) {
	return request({
		url: '/system/collage/add',
		method: 'post',
		data,
	});
}

// 编辑商品拼团
export function updateCollage(data) {
	return request({
		url: '/system/collage/edit',
		method: 'post',
		data,
	});
}

// 删除商品拼团
export function delCollage(data) {
	return request({
		url: '/system/collage/remove',
		method: 'post',
		data,
	});
}

// 导出商品拼团
export function exportCollage(query) {
	return request({
		url: '/system/collage/export',
		method: 'post',
		params: query,
	});
}
